home *** CD-ROM | disk | FTP | other *** search
- /*
- ZapBatch
- By J.L. White
- ⌐1993 Merlin's Software
-
- This Arexx script will allow you to batch convert a series of frames
- using any one of the OpalPaint painting modes. This script was originally
- created for use with Transporter SFC software but has been adapted to run
- as a script directly in OpalPaint through the Arexx function keys. Just
- set the path in the Arexx control panel for this file.
- ZapBatch requires that you pass it the first frame in the series, the
- prefix to save with and how many files to convert. For example, you have
- 90 frames of an animation called TEST with the frames named from TEST001
- to TEST090. Enter in TEST001 when it ask for the filename. Then it will
- ask for a name to save the new files as, which could be something like
- DH1:NEWTEST. Next it will ask you how many frames to convert where you
- would enter 90 in this example. You can save the new frames as IFF or JPEG
- and you can choose ANY Paint Mode you wish. The files will then be loaded
- one by one, zapped with the selected mode and then saved.
- I have been busy adding many new OpalVision features to Transporter.
- Version 1.1 allows users of OpalVision to single frame there animations
- to Video with most of the popular SFC cards out there. 1.2 will have alot
- more Opal support through out the program, like frame grabbing, slide shows,
- and Picture In Picture options. If you would like more information on
- Transporter you can contact me at the address below.
-
- Jeff White
- 809 W. Hollywood St.
- Tampa, Fl. 33604
- (813) 977-6511
-
- */
-
- address "OpalPaint_Rexx"
- options Results
-
- call GetInName
- call GetOutName
- call GetTotal
- call Convert
- Okay "Arexx Script Is Complete!"
- exit
-
-
-
- Convert:
- do FrameNum = 1+AddNum to TotalFiles+AddNum
- if FrameNum = 1 +AddNum then do
- SaveSetUp
- Key "AMIGA m"
- AskBool "Select Save Format You Wish To Use?\n\n Select [OK] For IFF \n\n Select [CANCEL] For JPEG"
- if Result=0 then do
- AskProp 1 100 84 "Enter JPEG Compression Value (1 - 100)!"
- Format = JPEG Result
- end
- else
- Format = IFF
- Saver Format
- end
- Load InPic""right(FrameNum,3,'0')
- if RC = 10 then do
- Okay "Arexx Script Aborted!"
- exit
- end
- Zap
- Save OutPic""right(FrameNum,3,'0')
- if RC = 10 then do
- Okay "Arexx Script Aborted!"
- exit
- end
- if FrameNum = TotalFiles+AddNum then do
- RestoreSetUp
- end
- end
- return
-
-
-
- GetInName:
- AskFileName "Enter Name Of First Frame" "OpalPaint:Images" ""
- if RC = 5 then do
- Okay "Arexx Script Aborted!"
- exit
- end
- AddNum = right(Result,3)
- Length = wordlength(Result,1)
- InPic = left(Result,Length-3)
- AddNum = AddNum - 1
- return
-
-
-
- GetOutName:
- AskFileName "Enter Name For Saving Frames" "OpalPaint:Images" ""
- if RC = 5 then do
- Okay "Arexx Script Aborted!"
- exit
- end
- OutPic = Result
- return
-
-
-
- GetTotal:
- AskProp 1 99 29 "Enter Total Number Of Frames (1-99)!"
- if RC = 5 then do
- Okay "Arexx Script Aborted!"
- exit
- end
- TotalFiles = Result
- return
-
-